package org.UserHouse.Test;

import org.UserHouse.Dao.Imp.OrderDaoImp;
import org.UserHouse.Dao.OrderDao;
import org.UserHouse.entity.Order;

import java.util.List;

/**
 * @author bin
 * @date 2024-12-22
 */
public class OrderDaoTest {
    public static void main(String[] args) {
        Order order = new Order();
//        order.setHname("iphone 15");
        OrderDao orderDao = new OrderDaoImp();
        List<Order> list = orderDao.selectPageOrder(order, 1, 5);
        Long count = orderDao.selectPageCount(order);
        System.out.println(list);

        for (Order o : list) {
            System.out.println(o.getHname());
        }

        System.out.println(count);
    }
}
